package com.sx.zongzhi.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by XZY on 2017/11/24.
 * 户籍人口的bean
 */
public class PopulationBean implements Serializable{

    /**
     * page : 1
     * records : 2
     * rows : []
     * total : 1
     */

    private int page;
    private int records;
    private int total;
    private PermissionBean permission;
    private List<RowsBean> rows;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public PermissionBean getPermission() {
        return permission;
    }

    public void setPermission(PermissionBean permission) {
        this.permission = permission;
    }

    public static class RowsBean implements Serializable{
        /**
         * age : 22
         * currentAddress : 湖北省襄阳市枣阳市万象城
         * gender : {"displayName":"男性","id":"600C9444E15560CEE0530100007F0674"}
         * id : 8087cd39f1f642508080d7152259027e
         * idCardNo : 420683199501310333
         * name : 张三
         */

        private int age;
        private String currentAddress;
        private GlobalBean gender;
        private String id;
        private String idCardNo;
        private String name;
        private String imgUrl;

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public String getCurrentAddress() {
            return currentAddress;
        }

        public void setCurrentAddress(String currentAddress) {
            this.currentAddress = currentAddress;
        }

        public GlobalBean getGender() {
            return gender;
        }

        public void setGender(GlobalBean gender) {
            this.gender = gender;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIdCardNo() {
            return idCardNo;
        }

        public void setIdCardNo(String idCardNo) {
            this.idCardNo = idCardNo;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

    }

    public static class PermissionBean implements Serializable{
        private boolean updateHouseholdStaff;
        private boolean addHouseholdStaff;
        private boolean deleteHouseholdStaff;

        public boolean isUpdateHouseholdStaff() {
            return updateHouseholdStaff;
        }

        public void setUpdateHouseholdStaff(boolean updateHouseholdStaff) {
            this.updateHouseholdStaff = updateHouseholdStaff;
        }

        public boolean isAddHouseholdStaff() {
            return addHouseholdStaff;
        }

        public void setAddHouseholdStaff(boolean addHouseholdStaff) {
            this.addHouseholdStaff = addHouseholdStaff;
        }

        public boolean isDeleteHouseholdStaff() {
            return deleteHouseholdStaff;
        }

        public void setDeleteHouseholdStaff(boolean deleteHouseholdStaff) {
            this.deleteHouseholdStaff = deleteHouseholdStaff;
        }
    }

}
